package com.numbfish.ch_03.Phaser_test1_1.src.test ;

import java.util.concurrent.Phaser;

import com.numbfish.ch_03.Phaser_test1_1.src.tools.PrintTools;
import com.numbfish.ch_03.Phaser_test1_1.src.extthread.ThreadA;
import com.numbfish.ch_03.Phaser_test1_1.src.extthread.ThreadB;
import com.numbfish.ch_03.Phaser_test1_1.src.extthread.ThreadC;

public class Run {
	public static void main(String[] args) {
		Phaser phaser = new Phaser(3);
		PrintTools.phaser = phaser;

		ThreadA a = new ThreadA(phaser);
		a.setName("A");
		a.start();

		ThreadB b = new ThreadB(phaser);
		b.setName("B");
		b.start();

		ThreadC c = new ThreadC(phaser);
		c.setName("C");
		c.start();
	}
}